package com.pmsystem.dao;

import com.pmsystem.pojo.Administrator;
import com.pmsystem.pojo.AdministratorExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;


public interface AdministratorMapper {
    long countByExample(AdministratorExample example);

    int deleteByExample(AdministratorExample example);

    int deleteByPrimaryKey(Integer adminId);

    int insert(Administrator record);

    int insertSelective(Administrator record);

    List<Administrator> selectByExample(AdministratorExample example);

    Administrator selectByPrimaryKey(Integer adminId);

    int updateByExampleSelective(@Param("record") Administrator record, @Param("example") AdministratorExample example);

    int updateByExample(@Param("record") Administrator record, @Param("example") AdministratorExample example);

    int updateByPrimaryKeySelective(Administrator record);

    int updateByPrimaryKey(Administrator record);

	
	/**
	 * 
	 * <p>Title: login</p >  
	 * <p>Description: 二级管理员登陆</p >  
	 * @author 泽强
	 * @param username
	 * @param password
	 * @return
	 */
	Administrator login(String username, String password);

	/**
	 * 
	 * <p>Title: findAdmin</p >  
	 * <p>Description: 按一定条件查询admin</p >  
	 * @author 泽强
	 * @param map
	 * @return
	 */
	List<Administrator> findAdmin(Map<String, Object> map);
	
}